Light front Hamiltonian and its application in QCD