added errorchecking to hideMedia in BookView