fixed code indentation and button layout
fixed code indentation and button layout