migrated the final instagram logic from my mini rails project
added divs for spa