added even listeners to accomplish tasks