added the prepare scene method, so we can create heavy objects before displaying the scene itself