Replaced jquery + flot with d3; exported edit views to separate templates