Greasing the baking dish with cooking spray or butter before pressing the mixture in will help prevent sticking. You can also line the pan with parchment paper, leaving some overhang, which will make it easier to remove the treats from the pan once cooled.