diff --git a/billard/templates/billard/index.html b/billard/templates/billard/index.html
index 6746d72..a0378c0 100644
--- a/billard/templates/billard/index.html
+++ b/billard/templates/billard/index.html
@@ -31,9 +31,10 @@ $(document).ready(function() {
function refresh_page() {
$('#desk_data').load('#');
- $('#accountsmodal').modal('hide');
- $('#modal-wrapper').load('{% url 'accountmodal' %}');
- $('#accountsmodal').modal('show');
+ $('#modal-wrapper').load('{% url 'accountmodal' %}', function() {
+ $('.modal').modal('hide');
+ $('#accountsmodal').modal('show');
+ });
}
{% endblock %}