add the ButtonInfo.java and finish the redirect