updated routings, error handling methods and assets dirctory handling for theming