issue-163 minimize now sort of works but requires multiple clicks. infinite digest loop issue is gone though