OPAL-2252 - used switch case to determine the selected tab.

Also, removed redundant response code from response callback handler