Added check if method exists and disabled default 404 page.