enabling views to be added and removed