adding stacked class for view