added public boolean field to activity