button scoping