fixing resource urls in base layout