added final touches to submit feature