Added popup menu functionality to tasks