Divided api controller into for messages and events
Slight changes in css and template of messages widget