enable/disable keys and button in viewer