add transition flip in app.js is for general use