finally got the ui worked out