added layout function and another list posts. also dedicated file for cpt and cf