Fix for optimize, add title and favicon