Form factors and QCD in spacelike and timelike regions