Added next callback and fixed css requests