As I was checking some code, I though that I should write a note about good and bad practices.
When you create a table entry and want to use a form of status (or whatever other type of multi-state entry with a fairly small selection such as the sex of a person) you often think of using an enumeration or at least an integer. For a status, you could use 0 meaning off and 1 meaning on. Maybe you have a third status: 2, meaning it is on and shows a form to the user.
In general, this works as a great optimization. If you use a string such as "on", "off", "with-form", ...