added mouse hover support for buffer switching