Deals with the the views tabs and the next/prev buttons.