creating onload function

sets up onclicks