Adding interactions with the buttons on the action bar