add ajax for status selection