prefect some style and move templates to views