prepare to view