added key bindings for preview