click outside compile options menu mostly works