scroll event added, minor bug fix

added catching scroll event feature
fixed a bug in empty view attribute implementation