implemented copy for Badge-Apply On click of Apply Button. fixes #197 and fixes #198 which is a copy of 197