added extra conditions to sidebar for editing staff