Attach elements before displaying solution.