added else in mouseClicked