cleaned up views and handled completed todo items