using gon for setting curren user in frontend