remove useless functionalities and fix the nested form