added mouse scroll handling