added layout; changed delAction; added parameter passing