added blog and corrected logic in layout