separating script and styling