More implementations on the layout template

Fixed footer and mobile compatibility enhanced