improving scaling constraint
improving button based examples