Lua source modified

Add some variables
Add refresh list functions