implement function to post availability. Server side still required