Adds support for dynamic button positioning