Edit availability functionality implemented