Endorse button removed after one endorse
moving logic from index page to helpers