rewriting rendering of buyoptions and buttons