refactored app views resource somewhat