added tasks functionality