rebuild buttons