Solved yesterdays bugs. Only popover and dropdown generation need to be dynamic now