Initial Event Controller Refactoring Code