code cleanup
url args, better 404 handling
chart controller refactoring