changes in register page js and offer show view