added ajax submit, removed debug outputs from php