Documents controller