implemented update priority in edit task page