Got ajax working for atending events. Also flash messages