added coverage report; fixed bug where on element changed was being called every iteration, rather than just on change... i.e. it wasn't working
bug fix for on element changed