make clicking class bring up class details