Added button creation method for dynamic screens