Updated the views and process function