creating Message and View models