added register_post_type function for EVENTS at lines 64 to 71