make sure that title and actionbar are initialized