toggle button text based on current view