adding init function to be useable as application component