Refactor some textboxes to UI elements