added more functionality to front end.