Make documentation controller dynamic