removed some superflous code from functions and tweaked yet again some sidebar elements