some refactoring and added some css to the different inputs types