Add up button to navigation bar when needed

Please review @schilit 
Thanks