Open and closes tasks