building a simple user interface