Change newtask to use withLayout