adding events on Resful Controller