new working version
new view for correctly closing it