Closing of views implemented