A couple of bugfixes to navbar view

Fixes crashes if recents button / back button is removed, also  a lot of
cleanup

Change-Id: I7def846bda4bc9af717c9b217103854e0fec0df2