fixed issue with view not being centered