defview loading and more helper functions