clean up
apply django template inheritance