This seems kinda ridiculous, there has GOT to be a better way to do it.... Erm, why is this needed in addition to the "afterRender" functions above?