changed from single page to server side mvc