added ui layer and started with model layer