Updated pib_render_button function and all calls to it