trying to fix focussing when closing views