clicking link should correctly close menu