Moved availble states to the adapter