add view appear methods snippet