put modal tag outside the template