changed all renderer and windows to sharedptr