moved click handlers to their own funciton/method... whatever they are called in java