office mainbar menu fuction