Made startupfunction capability, where I have included resizing functions for window.