solved minor bug that made loading button disappear after closing popup