Determine menu activity in layout