simplified setVisable calls by incorporating them into switchToTasks and
setRightContent. also implemented cancel button in newTask pane.