several improvements in the View class