restore values from last time on gui connect