edited and added functionalities to user interface