migrate set priority from ajax to classical submit method update.py