Added selecttype to show function