Removed transients code from functions and sidebar