Added UI elements and auto-save functionality.