added some method to orm and link the view
added some method to orm and link the view