adjusted gui and debug drawing