Further work on making the buttons dynamic. Still having difficulty adding the created buttons to the layout.