edit buttonPressed