After implementing the code, the location and size of the view is wrong. I am using a tableview 