implemented view layout default and view action in layout