flatten button