update style and link behavior