Fixed off by one error in client id assignment
Added action listener to order submit button