Prevent the refresh/reload of index page when button triggers