changed the rendering tab based on search criteria