combine html draw functions
fix possible null pointer
mess around
remove dead code: crater