start to refactore script view for ios7