fix uploading exceptions and add hiding keyboard