changing the styles of the well and making it into a template function