add another function to change popup view