Changed links to buttons and arranged them in a loop.