task View not working properly