Solving problem with gui interface