Added States Panel and modified Ajax call