As I see it the problem is not EU itself but the economic system we/politicians has allowed to be created.
We have to ask our self why people in the western world want change, they know its something wrong (less jobs, less salary, less security) but cant understand what is the specific problem. Therefore they vote on everything that is not the regular like Trump, Leave EU and right wing politicians.
The experiment of globalization and to give all power to the market is the root of the problem and the experiment is simply not working. Examples of this can be found in every major econo