edited rendering canvas

changed configuration of layers
added closing functionality
debugging