refactored fragments into view folder, added ORM