Refactored code, cleaned up the UI, and added fronted code for new functionality.