Added clicked vs. non-clicked styling

renamed some variables to be clearer.