layer selector now works