Set button text based on whether associated record is already active.
Always switch to 'visualise' tab when view is clicked.