restore stylesheet and layout