init buttons first