How to customize directory layout