added functionality of gui; for interface look at gui_widget.py;