add appid/secret to view, add raw button code to home template