registered the gui handler, fixing the last problems