Moved all socket events into seperate files