add old view code