Working basic gui with model