replaced close link with a button

the link was redirecting - i think event.preventDefault() should be
added if we want to use links.