implementation of gui render