some bug fixing
ajax bugfix
added index selectors