add partial and modify controller