I'm sewing a cushion with ruffles for the first time and it turned out very badly!

Take a look at the attached photo and you will know what I mean.
How can I tuck the ruffles away safely when sewing the front piece to the backing, to ensure that the 4 corners will turn out beautifully?
Any help on this will be very much appreciated!