Added availability to events and improved Event ajax functions