Added readonly form and fixed menu generation