Applied layout to index and navbar