implementing foundation to existing view