Moving sidebar to theme-support functions file

still need to clean up functions organization further