updated controller class to generate controller url. also added css refresh to the view class