defined function to open menu adjacent with left and right arrows, and comments for not forgige