pending task functionality added