add previous and next post functionality and cleaned up footer