Move Debug console view related stuff to an appropriate class