added another parameter to view, fixed platform-specific build warning