fix for closeing user modal.