added basic mouse functionality