added refresh button, removed auto generate code in client startup