better behavior for sub-menu