add a line pusher for the gui and fix the restart bug