Fixes web interface and rewrites