checks if the controller exists before creating
ask user for type and name in case it wasn't provided

convert tabs to spaces