moved code for action bar into it's own object