now properly shows close button when restored from a bookmark