adding events controller