Starting the onclick logic