now need to implement mvc