moved document controller to trails controller to see if it works