add resume and valid head for a main page