set style in hook