update to use gem and login link to use click event