aded template models and controller and ripped out all unwanted code