Updated the previous next logic as per the new xml structure to accomodate screens
Merged with Engine.js
Merge few more changes