Fixing warnings and putting input outside select