make gui with code rather than ui file