made app restful