refactor inline styles. Closes #58