cleaning up the janky bootstrap button code