Main, Bound Clicked Class to Modal

Also changed class to availClass (encountered conflicts re: reserved
keyword)