moved getHeaders to request widget