finished availability logic and small bug fix on listing show page