implemented actionbar items function