added leave app. created more models.