updates grid styles