I haven't test $('overlay-menu').hidden = (id === 'nocard'); works or not, but if it works, it will be great that we replace this code block with just one line in Camera, Gallery, Music and Video apps.