updating grid styles