Line Extraction and relative GUI modified