narrowed down code for sm and md. Still need xs.

button bug issues still.