add eventlistner to not have to create global variable to access xul property