changing menu layout to prevent crashes