Move some DOM creation methods in their respective files