Update script to rearrange apps