Added code to copy the views over