Improve navbar handling

Set small buttons to gone if they are both empty. Additionally,
if recent button is removed by the user, long press of home button
(released on the home button) will toggle recents.