added subscribe/unsubscribe button behavior