Capture ng-change and do something for "show preview" checkbox

Signed-off-by: Pankaj Singh <psjinx@gmail.com>