Made pib_render_button more flexible and easier to expand later