small fixes to the actionbar in the main screen
fixing a bug by avoiding using a method not defined in lower apis