set bindings for opening and closing tabs