post handling and layout