fixing height and width container the page and refactor template for email