close view on done