init view before reload