Makes scanning refresh

All this changes is creates refresh (which is just the init function)
then init and enter call refresh