input select and loading directive