added layout and created a interface