adding gain param control to edit page, delegating all sample file responsibility to native code