added blocks logic to ActionSheet