due to problems with redirect and ajax plugin rewritten to javascript submitting