Clearing screen before initializing a function