added all menu layout logic