update style for select pattern