added initial view layout and updated index & add