working on layer chooser func call