add edit mode to salscore.py