moved functions into .prototype, commented out original functionality, beginning to rebuild ui.