rewritting links menu