Corrected gui interface
Added timeout for connection