added some functions to the listeners, just to test and see.