adding basic mouse interactions to svg