set up UI framework