Let bootstrap dismiss modal automatically