events controller added and appropriate changes done