added if else statements to entry show view