turn sidebar content into element, update accordingly