Fix two issues with setting editor inputs and viewer refresh.

Change-Id: If9ea89e0ffe16f7e459ff81ac6bbf5cccf005d2f