profile opens and closes