Reworked template loading. Added accordion to lists. other minor stuff