reformatted buttons into a table