Changed MouseListeners and dimension drawing