events happen when you click things on the list on the left