Save restore layout judgement by application