finished models and added post controller