fixed copy-paste error in availability switch, added name to submit button