working on getting outside menu click to close menu. has a bug