set up rules for creat/edit task; fixed style