moved functionality from main activity to fragment.custom actionbar pending