Created superclass with single behavior of actionbar