fix for page reload on click