change the format of log-buttons
refactoring SetXScale() SetYScale function