added init button and it's functionality