fixed appointment form, added emergency button