cleaned up code and added pagination to event table
Merge pull request #3 from hmsdao/development

cleaned up code and added pagination to event table