better handling for closing views
add release