input view working for back button and refresh

input view working for back button and refresh
you don't need an IIFE here