restructured app
added pub and sub
confirmed that app data is secure when user is not logged in