managing hiding and showing of actionbar