show and hide the correct layer controls