refactored availiablility button