Improved gui updating