Moved button render to main.