Fixed to wait until the page has loaded to have the clickhandler