Make achievement button works and use resultCode