modified controllers and added select tag to handle relations
modified controllers and added select tag to handle relations