add javadoc to controller