optimize the formview