Arrange code -->delete duplicate function
Complete the function of refresh show page