main page refactoring & set thumbnail