adding code for selecting row and showing messsage alert as per Tutorial #5