get input content on view page working