Added exception on update and delete contact button

Included a test to validate that at least 1 row is selected in order to
modify or delete a record.