updated mainview button and example