adds media and library view