Code cleanup in toolbar_set_view_button