buttons working on front preview