Converted Buttons to local vars