working on flexible layout for the details page