implement switching between fragments using menu