add refresh method for namelist cache, improve updating code, connect buttons,