Set the action bar to callapsible
changed menucall statements to  switch from if else statements