implemented parser in the GUI