refactoring controller. basic get requests working
refactoring to be more event based