started working on the method to parse what happens when the user clicks