added views helper an controller for device