added some method to orm and link the view