fixing gui and parsing process