Added superclass to handle common navigation bar buttons