Working version with views and layouts.