beaitufying code
transfers over refactored logic
adds ui file
refactoring