refactor and make form helpers work with simple form