fixed default button assignment on prerender