fix header and add loading template
use method to submit form