document UI removed from modal and router