make scale topoff leftoff works for buttons