Added code to support submit action