added top and bottom buttons to the table