minor styling changes and before filter added