cleaned code added menu to fragment