create adapter accordingly to selecting item