New Update to 4.0

A lot of changes in the UI and fixes of bugs.