added inline submitting with two controllers