add view, insert, funtion.