Improve functionality for showing/hiding the task panel