What is the purpose of this?  It's causing the table to appear expanded and then collapse once it receives data.  Also why declare a local variable for the function?