fixed menu layout code