fix error declare method php
fix bug headers
fix navigate bug