added handling post requests