Isn't there a simpler way of replacing modal header?