using qt designer to create interface instead of hardcoding