added post to nfcgiveactivity and initialize layout