add highlighting to selected rows in bulk edit view and when selecting saved items; some refactoring of javascript