corrected the update query for rights
added validation for the record id
modified view all rights preview and added view one jsp