Fixed AppModel, added page resizing