added views and static files, then implemented active record to avoid having big constant hash