add method length for objects && add simple handler for buttons