Controller : method to clear document