fixing events and canvas settings so that 3d objects take precedence over UI elements