Enable/disable actions depending on the number of registered layers