removed warning by casting the returned view controller