refactor html into jade with layout separated