create function to handle adding to watchlist and render of movie page so as not to repeat code.