Added new app model
Added xpublisher code