Added show/hide loading functions after adding a repository from modal