refactor appeals and clean up some views