got missing commas and ends taken care of, beginning click logic