added tab javascript such that tab remains at selected tab upon page rel...

...oad. needs work to ensure same effect when done or delete button is pressed. 50% complete only.