Loaded the onclick function if page reloaded with turbo-links