Change logic of conditional show