Building gui when compiling from the top