Here is a tutorial!
What you will need:
-tape or spray adhesive
-batting ( I used a prepackaged quilting batting)
-staples and staple gun
Roughly mark foam, then secure down with tape or spray adhesive so that you can secure with batting.
Place batting on top and secure with a staple in each end, pull taught but not too tight. We want the foam to keep its shape. Cut off excess.
Iron fabric and place on foam/batting. Secure with staples alternating sides. Carefully attach the edges around the curve to ensure there is no bunching
Cutting slits helps with the corners
Cut off excess fabric and batting. Add nailhead and voila!
In this case also remove and install new legs
Nailhead trim $27