fixed warnings and added base view controller