add new logic in views and controllers