Connecting view and adding static resorces