writing first view