mouse events reimplemented in mainview