Actions implemented

Implemented join and leave actions