made renderer singleton, changed initalization order ard refactored