set option id to layer id