added functionality to user interface