app can share data with main, app won't reload on click