Added api method to displaying tasks