remove sent, minor view.php changes