Add foundation styling to button elements

Why don't you check the button type just before adding it instead of in buildView ?