Added a function to create a modal div on top of the canvas