working afterActivity Activity (only buttons)

fixed issue with counting pace