Put creation of liststore in a funcion