Function to delete the template, if it has been placed.
Function to place the template, if an area was selected.
Whether an area was selected.
Function to delete the template, if it has been placed.