Added extra check for displaying topmenu's