restructure the flipbook application example