Gradiated Background maker is now in a function

Moving of the gradient background code aswell as some minor tweaks to it