admin function to sidebar