addemptyrow for more than one row
* use .on(...) instead .click(...) for dynamic attachment

Change-Id: I3677c908e0a7e2b9b9ce68016051a4b1cafadad8