1181 list sources

Source list view. I refactored the toggle code into a reusable directive and also fixed the issues mentioned in #52.