Click event neutralized on toggle view

neutralized the click event to prevent page reload