refactored app; implemented helper resource