modals can close now and share button works