refactor web handler and event handler
adding back tests for action route, route spec