fixed some var prob
added state to list
added student query tab
added states to var
fixed some errors