Change sidebar position, remove unneeded code