added the action bar and got it working