View behavior in separated class