changes in model and controller, table links working
changes in model and controller, table links working