Before starting to write code or program buttons, be sure you know the precise functionality that you want. Draw an outline of what you want the software to look like, and consider any ways to streamline it for your users. Saving your client or users clicks is going to save them time, and you can even advertise that you are saving them money that way. Always have a clear and concise idea going in, and everything will go much quicker.