refine code iPad cover view