removing some .attr method calls