improving GUI and adding displayinformation function