added ability to put callback to view