replaced missing code to create actionbar menu.