shifted state, topic and cc .php's to index.php and added table