fixed custom menu layout issue