Errors and moving url resources to its resource
Cleaning resource code