edit mode in salscore.py