added routes for close/reopen and archive/unarchive. Conditions on ui