updated method calls to match a redactor new api version. Added viewType...

updated method calls to match a redactor's new api version(9.0.2).
Added viewType which can take 'modal' or 'dropdown' value to change the output view