Simplified and abstracted the UI a bit - removed hard-coded IDs to allow it to be more easily populated.