delete end in file route and front form flat