moving map back out of template