Major fixes

Fixed UI initialization when loading profiles.
All working but the view mode, that still has to be added :)