Add function to select row