Replace R.id switch with if.
Added buck related files.