Fix a couple of bugs:
 - Views get loaded twice on startup
 - Crash when dismissing the composer