Change delete page into a popup dialog of form page
Fix bug: clear form when displayTask is called with undefined task