[OE-4753] set button visibility based on a stored hash rather than an ajax call