fixing some aspects of viewcontroller