added template inheritance

cleaned up global css, changed template structure to inheritance,
deleted unused templates