Adding layout and actions